package com.ruoyi.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.ConstructionAddSoilMapper;
import com.ruoyi.modules.domain.ConstructionAddSoil;
import com.ruoyi.modules.service.IConstructionAddSoilService;

/**
 * 工地土方信息Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class ConstructionAddSoilServiceImpl implements IConstructionAddSoilService 
{
    @Autowired
    private ConstructionAddSoilMapper constructionAddSoilMapper;

    /**
     * 查询工地土方信息
     * 
     * @param ID 工地土方信息主键
     * @return 工地土方信息
     */
    @Override
    public ConstructionAddSoil selectConstructionAddSoilByID(String ID)
    {
        return constructionAddSoilMapper.selectConstructionAddSoilByID(ID);
    }

    /**
     * 查询工地土方信息列表
     * 
     * @param constructionAddSoil 工地土方信息
     * @return 工地土方信息
     */
    @Override
    public List<ConstructionAddSoil> selectConstructionAddSoilList(ConstructionAddSoil constructionAddSoil)
    {
        return constructionAddSoilMapper.selectConstructionAddSoilList(constructionAddSoil);
    }

    /**
     * 新增工地土方信息
     * 
     * @param constructionAddSoil 工地土方信息
     * @return 结果
     */
    @Override
    public int insertConstructionAddSoil(ConstructionAddSoil constructionAddSoil)
    {
        return constructionAddSoilMapper.insertConstructionAddSoil(constructionAddSoil);
    }

    /**
     * 修改工地土方信息
     * 
     * @param constructionAddSoil 工地土方信息
     * @return 结果
     */
    @Override
    public int updateConstructionAddSoil(ConstructionAddSoil constructionAddSoil)
    {
        return constructionAddSoilMapper.updateConstructionAddSoil(constructionAddSoil);
    }

    /**
     * 批量删除工地土方信息
     * 
     * @param IDs 需要删除的工地土方信息主键
     * @return 结果
     */
    @Override
    public int deleteConstructionAddSoilByIDs(String[] IDs)
    {
        return constructionAddSoilMapper.deleteConstructionAddSoilByIDs(IDs);
    }

    /**
     * 删除工地土方信息信息
     * 
     * @param ID 工地土方信息主键
     * @return 结果
     */
    @Override
    public int deleteConstructionAddSoilByID(String ID)
    {
        return constructionAddSoilMapper.deleteConstructionAddSoilByID(ID);
    }
}
